x86: Mask X86_FEATURE_XSAVE in cpuid leaf 1, ecx, as we don't allow
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Mar 2009 08:54:19 +0000 (08:54 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Mar 2009 08:54:19 +0000 (08:54 +0000)
commit52699620965db5bd229788223427d4559644b36e
treef15361eef5a4b94b3b1bd4e3d74085687bc62ae7
parent6db42837ce7ac8c7028dc8416a11442775af3c45
x86: Mask X86_FEATURE_XSAVE in cpuid leaf 1, ecx, as we don't allow
guests to use it (by setting cr4.OSXSAVE).

This prevents crashes in pvops kernels, as new versions of Linux
try to use this feature.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/libxc/xc_cpufeature.h
tools/libxc/xc_cpuid_x86.c
xen/arch/x86/traps.c
xen/include/asm-x86/cpufeature.h